﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace QLKSOrange
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void kếtNốiCSDLToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DangNhapSQL childform = new DangNhapSQL();
            childform.MdiParent = this;
            childform.Show();
        }

        private void đăngnhậpToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DangNhap childform = new DangNhap();
            childform.MdiParent = this;
            childform.Show();
        }

        private void thoátToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void thêmNhânViênMớiToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ThemNhanVienMoi childform = new ThemNhanVienMoi();
            childform.MdiParent = this;
            childform.Show();
        }

        private void thêmPhòngMớiToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ThemPhongMoi childform = new ThemPhongMoi();
            childform.MdiParent = this;
            childform.Show();
        }

        private void cậpNhậtPhòngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CapNhatPhong childform = new CapNhatPhong();
            childform.MdiParent = this;
            childform.Show();
        }

        private void tracứuThôngTinPhòngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TraCuuPhong childform = new TraCuuPhong();
            childform.MdiParent = this;
            childform.Show();
        }

        private void đặtphòngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            
        }

        private void thuêPhòngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ThuePhong childform = new ThuePhong();
            childform.MdiParent = this;
            childform.Show();
        }
    }
}